<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../baselist.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>修改用户</title>
</head>

<body>
<form name="icform" method="post">

<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
  <div id="navMenubar">
<ul>
	<li id="update"><a href="#" onclick="formSubmit('update','_self');this.blur();">保存</a></li>
	<li id="back"><a href="#" onclick="window.history.go(-1)">返回</a></li>
</ul>
  </div>
</div>
</div>
</div>
   
  <div class="textbox-title">
	<img src="../../staticfile/skin/default/images/icon/currency_yen.png"/>
    修改用户
  </div> 
  
<div>


<div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
	<tr class="odd">
		<td>用户ID:</td>
		<td><input type="text" name="userId" value="${user.userId}" readonly="readonly" /></td>
		<td>用户级别:</td>
		<td>
			<select>
				<option value="1" <c:if test="${user.userInfo.userLevel == 1}">selected="selected"</c:if>>总经理</option>
				<option value="2" <c:if test="${user.userInfo.userLevel == 2}">selected="selected"</c:if>>副总经理</option>
				<option value="3" <c:if test="${user.userInfo.userLevel == 3}">selected="selected"</c:if>>部门经理</option>
				<option value="4" <c:if test="${user.userInfo.userLevel == 4}">selected="selected"</c:if>>普通职员</option>
			</select>
		</td>
	</tr>
	<tr class="odd">
		<td>姓名:</td>
		<td><input type="text" name="username" value="${user.username}"/></td>
		<td>密码:</td>
		<td><input type="password" name="password" value="${user.password}"/></td>
	</tr>
	<tr class="odd">
		<td>生日:</td>
		<td>
			<input type="text" style="width:90px;" name="userInfo.birthday" value="${user.userInfo.birthday}" onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
		</td>
		<td>性别:</td>
		<td>
			<input type="radio" name="userInfo.gender" value="男" <c:if test="${user.userInfo.gender == '男'}">checked="checked"</c:if>/>男
			<input type="radio" name="userInfo.gender" value="女" <c:if test="${user.userInfo.gender == '女'}">checked="checked"</c:if>/>女
			<input type="radio" name="userInfo.gender" value="其他" <c:if test="${user.userInfo.gender == '其他'}">checked="checked"</c:if>/>其他
		</td>
	</tr>
	<tr class="odd">
		<td>身份证号码:</td>
		<td><input type="text" name="userInfo.cardNo" value="${user.userInfo.cardNo}"/></td>
		<td>电话号码:</td>
		<td><input type="text" name="userInfo.telephone" value="${user.userInfo.telephone}"/></td>
	</tr>
	<tr class="odd">
		<td>职位描述:</td>
		<td><input type="text" name="userInfo.station" value="${user.userInfo.station}"/></td>
		<td>入职时间:</td>
		<td>
			<input type="text" style="width:90px;" name="userInfo.joinDate" value="${user.userInfo.joinDate}" onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
		</td>
	</tr>
	<tr class="odd">
		<td>薪资:</td>
		<td><input type="text" name="userInfo.salary" value="${user.userInfo.salary}"/></td>
		<td>排序号:</td>
		<td><input type="text" name="userInfo.orderNo" value="${user.userInfo.orderNo}"/></td>
	</tr>
	<tr class="odd">
		<td>部门名称:</td>
		<td><input type="text" name="dept.deptName" value="${user.dept.deptName}"/></td>
		<td>上级领导:</td>
		<td>
			<select name="userInfo.manager.userInfoId" value="${user.userInfo.manager.userInfoId}" style="width:122px">
				<option value="0">上级领导/无</option>
				<c:forEach items="${managerList}" var="m">
					<option value="${m.userInfo.userInfoId}">
						${m.userInfo.name}
					</option>
				</c:forEach>
			</select>
		</td>
	</tr>
	<tr class="odd">
		<td>备注信息:</td>
		<td colspan="3">
			<textarea style="height: 80px;width: 85%" name="userInfo.remark">${user.userInfo.remark}</textarea>
		</td>
	</tr>
	<tr class="odd">
		<td>状态</td>
		<td>
			<input type="radio" name="state" <c:if test="${user.state == 1}">checked="checked"</c:if> value="1"/>启用
			<input type="radio" name="state" <c:if test="${user.state == 0}">checked="checked"</c:if> value="0"/>停用
		</td>
	</tr>
</table>
</div>
 
</div>
 
 
</form>
</body>
</html>

